//
//  FCCreditScoreCell.swift
//  FinancialConsulting
//
//  Created by Max on 2017/10/31.
//  Copyright © 2017年 com.vector. All rights reserved.
//

import UIKit

class FCCreditScoreCell: FCTableViewCell {
    
    @IBOutlet weak var resultLabel: UILabel!
    @IBOutlet weak var titleLabel: UILabel!
    @IBOutlet weak var titleText: UITextField!
    override func awakeFromNib() {
        super.awakeFromNib()
      
        resultLabel.isHidden = true
        

    }
    
    
    override func setSelected(_ selected: Bool, animated: Bool) {
        super.setSelected(selected, animated: animated)
        
        // Configure the view for the selected state
    }

}


protocol FCCreditScoreCellTwoDelegate : NSObjectProtocol {
    func changStart(sender: UIButton, one: UIButton, two: UIButton)
}



class FCCreditScoreCellTwo: FCTableViewCell {
    
    weak var delegate : FCCreditScoreCellTwoDelegate?
    @IBOutlet weak var titleLabel: UILabel!
    @IBOutlet weak var oneButton: UIButton!
    @IBOutlet weak var twoButton: UIButton!
   
    override func awakeFromNib() {
        
        super.awakeFromNib()
        
        oneButton.tag = 100
        twoButton.tag = 200
        
    }
    
    @IBAction func allAction(_ sender: UIButton) {
        
        delegate?.changStart(sender: sender, one: oneButton, two: twoButton)
        
        
        
    }
    
    override func setSelected(_ selected: Bool, animated: Bool) {
        super.setSelected(selected, animated: animated)
        
        // Configure the view for the selected state
    }
    
}

